import * as React  from 'react';
import {View,StyleSheet} from 'react-native';
import Icon from 'react-native-vector-icons/Entypo';
import {dp} from '@/utils/index'
function HeaderRightBtn() {
  const sharebtn = ()=>{
    console.log("分享了～～")
  }
  const cycleBtn = ()=>{
    console.log("刷新吧！！！")
  }
  return (
    <View style={styles.btn}>
       <Icon style={styles.btn._right} onPress={()=> cycleBtn()} name="cycle" size={dp(20)} color="#ef498b"></Icon>
      <Icon onPress={()=> sharebtn()} name="export" size={dp(20)} color="#ef498b"></Icon>
    </View>
  );
}

const styles = StyleSheet.create({
  btn: {
    height:'100%',
    alignItems:'center',
    flexDirection:'row',
    _right:{
      marginRight:dp(10),
    }
  },
  
});
export default HeaderRightBtn;